package com.siruier.boss.ad

import android.view.View
import com.bytedance.sdk.openadsdk.TTNativeExpressAd
import com.qq.e.ads.nativ.NativeADEventListener
import com.qq.e.ads.nativ.NativeADMediaListener
import com.qq.e.comm.util.AdError

abstract class SimpleNativeADEventListener : NativeADEventListener {
    override fun onADExposed() {}
    override fun onADClicked() {}
    override fun onADError(p0: AdError?) {}
    override fun onADStatusChanged() {}
}

abstract class SimpleNativeADMediaListener : NativeADMediaListener {
    override fun onVideoInit() {}
    override fun onVideoLoading() {}
    override fun onVideoReady() {}
    override fun onVideoLoaded(p0: Int) {}
    override fun onVideoStart() {}
    override fun onVideoPause() {}
    override fun onVideoResume() {}
    override fun onVideoCompleted() {}
    override fun onVideoError(p0: AdError?) {}
    override fun onVideoStop() {}
    override fun onVideoClicked() {}
}

abstract class SimpleExpressVideoAdListener : TTNativeExpressAd.ExpressVideoAdListener {
    //视频广告加载成功
    override fun onVideoLoad() {}

    //视频广告加载失败
    override fun onVideoError(p0: Int, p1: Int) {}

    //视频广告播放回调
    override fun onVideoAdStartPlay() {}

    //视频广告暂停回调
    override fun onVideoAdPaused() {}

    //视频广告续播
    override fun onVideoAdContinuePlay() {}

    //视频播放进度
    override fun onProgressUpdate(p0: Long, p1: Long) {}

    //视频广告播放完成回调
    override fun onVideoAdComplete() {}

    //点击重播
    override fun onClickRetry() {}
}

abstract class SimpleExpressAdInteractionListener : TTNativeExpressAd.ExpressAdInteractionListener {
    override fun onAdClicked(p0: View?, p1: Int) {}
    override fun onAdShow(p0: View?, p1: Int) {}
    override fun onRenderFail(p0: View?, p1: String?, p2: Int) {}
    override fun onRenderSuccess(p0: View?, p1: Float, p2: Float) {}
}